getPrismaticJoint = () => {
    var prefabIndex = 0;
    for (var i = 0; i < global.UnityNode.length; i++) {
        var d = global.UnityNode[i];
        if (d.PrismaticJoint.Add) {
            var nodeId = d.ID;
            prefabIndex++;
            global.curID++;
            global.finialInfo.push(PrismaticJoint(nodeId,d.PrismaticJoint));
        }
    }
}
PrismaticJoint = (nodeId,data) => {
    var d = {
        "__type__": "cc.PrismaticJoint",
        "_name": "",
        "_objFlags": 0,
        "node": {
          "__id__": nodeId
        },
        "_enabled": data.Enabled,
        "anchor": {
          "__type__": "cc.Vec2",
          "x": 0,
          "y": 0
        },
        "connectedAnchor": {
          "__type__": "cc.Vec2",
          "x": 0,
          "y": 0
        },
        "connectedBody": null,
        "collideConnected": false,
        "localAxisA": {
          "__type__": "cc.Vec2",
          "x": 1,
          "y": 0
        },
        "referenceAngle": 0,
        "enableLimit": false,
        "enableMotor": false,
        "lowerLimit": 0,
        "upperLimit": 0,
        "_maxMotorForce": 0,
        "_motorSpeed": 0,
        "_id": ""
    }
    if (global.isShowId) d["ID"] = global.curID;
    return d;
}
module.exports = {
    getPrismaticJoint,
};